package org.xinjiang.data.migration.hainan.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.xinjiang.data.migration.common.response.PageInfo;
import org.xinjiang.data.migration.common.response.Param;
import org.xinjiang.data.migration.common.utils.query.Pages;
import org.xinjiang.data.migration.hainan.entity.HnRegionEntity;
import org.xinjiang.data.migration.hainan.mapper.HnRegionMapper;
import org.xinjiang.data.migration.hainan.service.IHnRegionService;

@Service
public class HnRegionServiceImpl extends ServiceImpl<HnRegionMapper, HnRegionEntity> implements IHnRegionService {
    @Override
    public PageInfo<HnRegionEntity> pageList(Param pageable) {
        pageable.setOrderByColumn("id");
        IPage<HnRegionEntity> page = this.page(Pages.page(pageable));
        return Pages.convert(page);
    }
}
